package coursework.receivers;

import java.util.TimerTask;

public class ClientTask extends TimerTask {

	private Receiver client;
	
	public ClientTask(Receiver client){
		this.client = client;
	}
	
	@Override
	public void run() {
		Sample sample = client.removeSample();
		System.out.println(sample);
	}

}
